﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hotel.UI.Common
{
    public class Response
    {
        public string Message { get; set; }

        public int ResponseCode { get; set; }
        public object Data { get; set; }
        public Response()
        {

        }
        public Response(string message, ResponseCodes responseCodes = ResponseCodes.DEFAULT) : this()
        {
            ResponseCode = responseCodes.ToInt();
            Message = message;
        }
        public Response(string message, object data, ResponseCodes responseCodes = ResponseCodes.DEFAULT) : this(message, responseCodes)
        {
            Data = data;
        }
        public string Route { get; set; } = @"Login/CheckLogin";
        public string ResponseId;
        public string RequestId;
    }
}